<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="b" uri="/bbs-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>My JSP 'index.jsp' starting page</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">

		<!--[if lt IE 7]> 
	<script type="text/javascript" src="js/ie6png.js"></script>
	<![endif]-->
		<link rel="stylesheet" type="text/css" href="css/index.css">
		<link rel="stylesheet" type="text/css" href="css/header.css">
		<link rel="stylesheet" type="text/css" href="css/footer.css">
		<style type="text/css">
</style>
	</head>

	<body onload="">
		<div id="container">
			<%@ include file="styleJsp/header.jsp"%>

			<!-- 中部 -->
			<div id="content">
				<div id="contentTop">
					<div id="contentTop1">
						<span class="contentTop1-2"><img src="images/indexh1.png" />
						</span>
						<span class="contentTop1-2">今日:<s:property
								value="todayAllPostNum" /> </span>
						<span class="contentTop1-1">|</span>
						<span class="contentTop1-2">昨日:<s:property
								value="yestodayAllPostNum" /> </span>
						<span class="contentTop1-1">|</span>
						<span class="contentTop1-2">帖子:<s:property
								value="allPostNum" /> </span>
					</div>
					<div id="contentTop2">
						<span id="contentTop2-1">公告:</span>
						<span id="contentTop2-2"><a href="#"></a>
						</span>
					</div>
				</div>
				<div id="contentCenter">
					<s:iterator value="list">
						<div class="contentCenterTop">
							<span class="contentTopTitle"><s:property
									value="motherBoardName" /> </span>
							<div class="contentTopShrink">
								<img src="images/shrink.gif" />
							</div>
						</div>
						<s:iterator value="boards" status="st">
							<div class="contentCenterMain">
								<div class="contentCenterMain1">
									<img src="images/boardImage1.gif" />
								</div>
								<div class="contentCenterMain2">
									<div class="contentCenterMain2-1">
										<a
											href="boardDisplayAction_lookOnlyBoardDetails?boardId=<s:property value='boardId'/>&pageNo=1"><s:property
												value="boardName" /> </a>
									</div>
									<div class="contentCenterMain2-2">
										<s:property value="boardSign" />
									</div>
									<div class="contentCenterMain2-3">
										<span class="contentCenterMain2-3-0">版主:</span>
										<span class="contentCenterMain2-3-1"> <s:iterator
												value="boardMaster">
												<a
													href="lookBlogIndexAction?userId=<s:property
													value='user.userId' />"><s:property
														value="user.userName" /> </a>
											</s:iterator> </span>
									</div>
								</div>
								<div class="contentCenterMain3">
									<span class="contentCenterMain3-1"><s:property
											value="posts.size()" /> </span>/
									<span class="contentCenterMain3-2"><s:property
											value="boardAllCount" /> </span>
								</div>
								<div class="contentCenterMain4">
									<div class="contentCenterMain4-1">
										<s:if test="map.get(boardId).postName==null">
											<a
												href="viewPostAction?postId=<s:property
													value='%{map.get(boardId).getPost().postId}' />"><s:property
													value="%{map.get(boardId).getPost().postName}" /> </a>
										</s:if>
										<s:else>
											<a
												href="viewPostAction?postId=<s:property
													value='%{map.get(boardId).postId}'/>"><s:property
													value="%{map.get(boardId).postName}" /> </a>
										</s:else>
									</div>
									<div class="contentCenterMain4-2">
										<span class="contentCenterMain4-2-1"><s:property
												value="map.get(boardId).postDate.toString().substring(0,10)" />
										</span>
										<span class="contentCenterMain4-2-2"><a
											href="lookBlogIndexAction?userId=<s:property
													value='map.get(boardId).user.userId' />"><s:property
													value="map.get(boardId).user.userName" /> </a> </span>
									</div>
								</div>
							</div>
						</s:iterator>
					</s:iterator>
				</div>
			</div>
			<%@ include file="styleJsp/footer.jsp"%>
		</div>
	</body>
</html>
